home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 1999 November
/
SGI Freeware 1999 November - Disc 1.iso
/
dist
/
fw_expect.idb
/
usr
/
freeware
/
catman
/
u_man
/
cat1
/
mkpasswd.Z
/
mkpasswd
Wrap
Text File
|
1999-01-26
|
4KB
|
133 lines
MMMMKKKKPPPPAAAASSSSSSSSWWWWDDDD((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222 AAAAuuuugggguuuusssstttt 1111999999994444)))) MMMMKKKKPPPPAAAASSSSSSSSWWWWDDDD((((1111))))
NNNNAAAAMMMMEEEE
mkpasswd - generate new password, optionally apply it to a
user
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
mmmmkkkkppppaaaasssssssswwwwdddd [ _a_r_g_s ] [ _u_s_e_r ]
IIIINNNNTTTTRRRROOOODDDDUUUUCCCCTTTTIIIIOOOONNNN
mmmmkkkkppppaaaasssssssswwwwdddd generates passwords and can apply them
automatically to users. mkpasswd is based on the code from
Chapter 23 of the O'Reilly book "Exploring Expect".
UUUUSSSSAAAAGGGGEEEE
With no arguments, mmmmkkkkppppaaaasssssssswwwwdddd returns a new password.
mkpasswd
With a user name, mmmmkkkkppppaaaasssssssswwwwdddd assigns a new password to the
user.
mkpasswd don
The passwords are randomly generated according to the flags
below.
FFFFLLLLAAAAGGGGSSSS
The ----llll flag defines the length of the password. The default
is 9. The following example creates a 20 character password.
mkpasswd -l 20
The ----dddd flag defines the minimum number of digits that must
be in the password. The default is 2. The following
example creates a password with at least 3 digits.
mkpasswd -d 3
The ----cccc flag defines the minimum number of lowercase
alphabetic characters that must be in the password. The
default is 2.
The ----CCCC flag defines the minimum number of uppercase
alphabetic characters that must be in the password. The
default is 2.
The ----pppp flag names a program to set the password. By
default, /etc/yppasswd is used if present, otherwise
/bin/passwd is used.
The ----2222 flag causes characters to be chosen so that they
alternate between right and left hands (qwerty-style),
Page 1 (printed 12/23/98)
MMMMKKKKPPPPAAAASSSSSSSSWWWWDDDD((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222 AAAAuuuugggguuuusssstttt 1111999999994444)))) MMMMKKKKPPPPAAAASSSSSSSSWWWWDDDD((((1111))))
making it harder for anyone watching passwords being
entered. This can also make it easier for a password-
guessing program.
The ----vvvv flag causes the password-setting interaction to be
visible. By default, it is suppressed.
EEEEXXXXAAAAMMMMPPPPLLLLEEEE
The following example creates a 15-character password that
contains at least 3 digits and 5 uppercase characters.
mkpasswd -l 15 -d 3 -C 5
SSSSEEEEEEEE AAAALLLLSSSSOOOO
"_E_x_p_l_o_r_i_n_g _E_x_p_e_c_t: _A _T_c_l-_B_a_s_e_d _T_o_o_l_k_i_t _f_o_r _A_u_t_o_m_a_t_i_n_g
_I_n_t_e_r_a_c_t_i_v_e _P_r_o_g_r_a_m_s" by Don Libes, O'Reilly and Associates,
January 1995.
AAAAUUUUTTTTHHHHOOOORRRR
Don Libes, National Institute of Standards and Technology
mmmmkkkkppppaaaasssssssswwwwdddd is in the public domain. NIST and I would
appreciate credit if this program or parts of it are used.
Page 2 (printed 12/23/98)